<%-- 
    Document   : deviceInfo
    Created on : Oct 3, 2012, 10:35:39 PM
    Author     : phong
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <f:view>
            <a href="freeLab.jsp">Free Lab</a>&nbsp;|&nbsp;
            <a href="mySignList.jsp">My Sign</a>&nbsp;|&nbsp;
            <a href="report.jsp">Send Report</a>&nbsp;|&nbsp;
            <a href="myReportList.jsp">My Report</a>
            <h2>Device Information</h2>
            <h:form id="device">
                <h:panelGrid columns="2" border="1">
                    <h:outputText value="Device ID:"/>
                    <h:outputText id="id" value="#{deviceBean.device.id}"/>
                    <h:outputText value="Name:"/>
                    <h:outputText id="name" value="#{deviceBean.device.name}"/>                          
                    <h:outputText value="Description:"/>
                    <h:inputTextarea readonly="true" id="description" value="#{deviceBean.device.description}"/> 
                    <h:outputText value="Create Date:"/>       
                    <h:outputText id="createDate" value="#{deviceBean.device.createDate}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:outputText>
                    <h:outputText value="Warranty:"/>                        
                    <h:outputText id="warranty" value="#{deviceBean.device.warranty}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:outputText>

                    <h:outputText value="Status:"/>
                    <h:outputText id="status" value="#{deviceBean.device.status}"/> 
                </h:panelGrid>
            </h:form>   
        </f:view>
    </body>
</html>
